<?php include_once "head.php"?>
<div style="float: right;">
    <!--    <span><a href="--><?//=base_url("statics/statics/dub_basics?date=1")?><!--">昨天</a></span>-->
    <!--    <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>-->
    <!--    <span><a href="--><?//=base_url("statics/statics/dub_basics?date=3")?><!--">最近3天</a></span>-->
    <!--    <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>-->
    <!--    <span><a href="--><?//=base_url("statics/statics/dub_basics?date=7")?><!--">最近7天</a></span>-->
    <!--    <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>-->
    <!--    <a href="--><?//=base_url("statics/statics/dub_basics?date=100")?><!--"><span>全部</span></a>-->
    <?php if($time==1){ ?>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=1")?>" style="color: #00CC00;">昨天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=3")?>">最近3天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=7")?>">最近7天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=100")?>">全部</a></span>
    <?php }else if($time==3){ ?>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=1")?>">昨天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=3")?>" style="color: #00CC00;">最近3天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=7")?>">最近7天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=100")?>">全部</a></span>
    <?php }else if($time==7){ ?>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=1")?>">昨天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=3")?>">最近3天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=7")?>" style="color: #00CC00;">最近7天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=100")?>">全部</a></span>
    <?php }else if($time==100){ ?>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=1")?>">昨天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=3")?>">最近3天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=7")?>">最近7天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=100")?>" style="color: #00CC00;">全部</a></span>
    <?php }else{ ?>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=1")?>">昨天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=3")?>">最近3天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=7")?>">最近7天</a></span>
        <span>&nbsp&nbsp&nbsp|&nbsp&nbsp&nbsp</span>
        <span><a href="<?=base_url("statics/statics/dub_basics?date=100")?>">全部</a></span>
    <?php } ?>
</div>
<br>
<br>
<br>
<div style="float: right;">
    <span>累计pv：<?=$all_pv?></span>
    <br>
    <span>累计uv：<?=$all_uv?></span>
</div>
<div class="echart-container" style="min-height:500px;">

</div>

<script src="<?=SITE_BASE_URL?>/assets/js/echarts.min.js"></script>
<script>
    $(function(){
        //加载eachart
        var chart = echarts.init($(".echart-container")[0]);
        chart.setOption(
            <?=$option?>
        )
        //时间搜索
        $('.search').click(function(){
            var time=$("#test6").val()
            var url="<?=base_url("statics/statics/dub_basics?time=")?>"
            var jump_url=url+time
            window.location.href=jump_url
        })
    })
</script>
